﻿using SH.Common.CommonReturn;
using SH.Multitenant.Application.IServices.IUser;
using SH.Multitenant.Domain.RBAC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SH.Multitenant.Application.IServices.IEmp
{
    public interface IEmpServices : IBaseServices<Employee>
    {
        //员工登录
        Task<ApiResult<LoginResponseDTO>> EmpLogin(LoginRequestDTO request);
        //多条件获取员工列表
        ApiPaging<List<EmployeeDTO>> ConditionQueryGetEmployees(int storeId,int flag, string? search, int pageSize, int pageIndex);

        //员工添加
        Task<ApiResult<int>> EmployeeAddAsync(EmployeeAddDTO dto);
        //判断用户名是否唯一
        Task<bool> EmpNameUnique(string empName);
        //判断手机号是否唯一
        Task<bool> TelUnique(string tel);

        //员工信息修改
        Task<ApiResult<int>> UpdEmpInfoAsync(Employee employee);

        //根据员工获取其角色编号
        Task<int> GetEmpRoleIdAsync(string empId);
    }
}
